package org.cy.websocket.stomp;

import org.cy.websocket.stomp.messaging.Message;

/**
 * Created in 2021-05-09 16:47
 *
 * @author cao.yong
 */
public interface StompWebSocketListener {
    void onOpen();
    void onMessage(Message<byte[]> message);
    void onClosed(int code, String reason);
    void onFailure(Throwable ex);
}
